package com.thinkgem.jeesite.modules.app.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.sys.entity.UserBusiness;

/**
 * Created by xiaguoqiang on 16/5/31.
 */
public class AUser {
    private String userId;
    private String userName;
    private String communityId;
    private String neighborhoodId;
    private String userImg;
    private String email;	// 邮箱
    private String phone;	// 电话
    private String password;
    private String sex;  // 性别
    private String userType;   //用户类型
    private String remarks;
    private UserBusiness userBusiness;//商家信息

    public AUser(User user) {
        this.userId = user.getId();
        this.userName = user.getName();
        this.userImg = user.getPhoto();
        this.phone = user.getPhone();
        this.password = user.getPassword();
        this.email = user.getEmail();
        this.sex = user.getSex();
        this.userType = user.getUserType();
        this.remarks = user.getRemarks();
        if(user.getUserType().equals("4")) {
            this.userBusiness = user.getUserBusiness();
        }
    }

    public AUser(){
        super();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getNeighborhoodId() {
        return neighborhoodId;
    }

    public void setNeighborhoodId(String neighborhoodId) {
        this.neighborhoodId = neighborhoodId;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getSex(){ return   sex; }

    public void setSex(String sex){ this.sex = sex; }

    public String getEmail(){ return email; }

    public void setEmail(String email){ this.email = email; }

    public String getPhone(){ return  phone; }

    public void setPhone(String phone){ this.phone = phone; }

    public String getPassword(){ return password; }

    public void setPassword(String password){ this.password = password; }

    public String getUserType(){ return userType; }

    public void setUserType(String userType){ this.userType = userType; }

    public String getRemarks(){ return remarks; }

    public void setRemarks(String remarks){ this.remarks = remarks; }

    public UserBusiness getUserBusiness() {
        return userBusiness;
    }

    public void setUserBusiness(UserBusiness userBusiness) {
        this.userBusiness = userBusiness;
    }
}
